package com.community.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.community.common.pojo.domain.OwnerHouse;
import com.community.common.pojo.domain.PublicUser;
import com.community.common.pojo.domain.UserPermission;
import com.community.common.pojo.dto.FindOwnerDto;
import com.community.common.pojo.vo.OwnerCommunityVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 业主房屋关联表 Mapper 接口
 * </p>
 *
 * @author superman
 * @since 2020-08-02
 */
public interface OwnerHouseMapper extends BaseMapper<OwnerHouse> {

    List<OwnerCommunityVo> selectCommunityByOpenId(String openId);

    void updateCheckState(@Param("id") String id, @Param("checkState") Integer checkState);

    List<String> selectCommunityIdByOpenId(String openId);

    List<UserPermission> selectUserIdsByCommunityIdToAdd(String communityId);

    OwnerCommunityVo selectCommunityByOpenIdAndId(String id);

    Set<PublicUser> selectByCommunityAndName(FindOwnerDto findOwnerDto);


}
